package cc.eddic.pratice.programmingparadigms.streampractice;

/**
 * 问题和正确答案
 */
public class QuestionAndAnswer {
    /**
     * @param no            题号
     * @param question      题目
     * @param choice        选择
     * @param correctAnswer 正确答案
     */
    public QuestionAndAnswer(int no, String question, char choice, String correctAnswer) {
        this.no = no;
        this.question = question;
        this.choice = choice;
        this.correctAnswer = correctAnswer;
    }

    public int getNo() {
        return no;
    }

    public String getQuestion() {
        return question;
    }

    public char getChoice() {
        return choice;
    }

    public String getCorrectAnswer() {
        return correctAnswer;
    }

    private final int no;
    private final String question;
    private final char choice;
    private final String correctAnswer;
}
